/* app_inc.h */
#ifndef __APP_INC_H__
#define __APP_INC_H__

#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>

#include "gd32f20x.h"
#include "core_cm3.h"

#include "bsp_config.h"
#include "gd32f20x_conf.h"

#include "ring_buffer.h"

#define DRV_UART_INSTANCE         USART1
#define DRV_UART_IRQ_ID           USART1_IRQn
#define DRV_UART_IRQ_HANDLER_FUNC USART1_IRQHandler

void DRV_UART_InitAddWithIntMode(void);
void DRV_UART_PutCharWithIntMode(uint8_t ch);
uint8_t DRV_UART_GetCharWithIntMode(void);

#endif /* __APP_INC_H__ */
